package com.briup.day13;

public class Test_Buffer {
    public static void main(String[] args) {
        Integer i1=new Integer(127);
        Integer i2=new Integer(127);
        System.out.println(i1==i2);
//        identifyHshCode 是System类方法，相同地址对象返回hashCode码一样
        System.out.println(System.identityHashCode(i1));
        System.out.println(System.identityHashCode(i2));
        Integer i3=127;
        Integer i4=127;
        System.out.println(i3==i4);
        System.out.println(System.identityHashCode(i3));
        System.out.println(System.identityHashCode(i4));
        Integer i5=128;
        Integer i6=128;
        System.out.println(i5==i6);
        System.out.println(System.identityHashCode(i5));
        System.out.println(System.identityHashCode(i6));
    }
}
